//
//  FeaturesViewController.h
//  iTrack
//
//  Created by Sergei Sevriugin on 6/13/10.
//  Copyright 2010 Bellwood Systems. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "iTrackGoogleMaps.h"
#import "ViewDataManagement.h"
#import "iTrackAnnotation.h"
#import	"iTrackPropety.h"

@interface FeaturesViewController : UITableViewController <ViewDataManagement, UITextViewDelegate> {

	ITGoogleMaps*				gmaps;
	
	NSInteger					currentMapId;
	NSMutableArray*				mapProperties;
	NSMutableArray*				featureProperties;
	
	NSIndexPath*				child_indexPath;
	BOOL						updated;
	
	UIViewController*			root_controller;
	GDataEntryMapFeature*		currentFeature;
	BOOL						needToSave;
	
	BOOL						saveCurrentFeature;
	BOOL						saveCurrentMap;
}
- (IBAction)addClicked:(id)sender;

- (void) loadMapProperties;
- (void) loadFeatureProperties:(GDataEntryMapFeature*)feature;
- (iTrackPropety*) getFeaturePropertyByName:(NSString*)name;

@property (assign, nonatomic) BOOL								updated;
@property (assign, nonatomic) BOOL								needToSave;
@property (assign, nonatomic) BOOL								saveCurrentFeature;
@property (assign, nonatomic) BOOL								saveCurrentMap;

@property (nonatomic, retain) ITGoogleMaps*						gmaps;
@property (nonatomic, retain) NSMutableArray*					mapProperties;
@property (nonatomic, retain) NSMutableArray*					featureProperties;
@property (nonatomic, assign) NSInteger							currentMapId;
@property (nonatomic, retain) NSIndexPath*						child_indexPath;
@property (nonatomic, retain) UIViewController*					root_controller;


@end
